﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public class AbstractDAO
    {
        private static string chuoiKetNoi = @"Server = .\SQLEXPRESS; Integrated Security = True; Database = ChamCongDB";
        public static SqlConnection Connection()
        {
            try
            {
                SqlConnection ketNoi = new SqlConnection(chuoiKetNoi);
                ketNoi.Open();
                return ketNoi;
            }
            catch
            {
                return null;
            }
        }
    }
}
